package protocol.registration;

import java.io.DataInputStream;
import java.io.IOException;

public class ClientRegistrationRequest {

	private String m_type;
	private int m_port;
	private String m_ip;
	private int m_zona;
	private int m_ID;
	
	public String getType()
	{
		return m_type;
	}
	
	public String getIp()
	{
		return m_ip;
	}
	
	public int getPort()
	{
		return m_port;
	}
	
	public int getZona()
	{
		return m_zona;
	}
	//Input : Type Port Ip 
	public void read(DataInputStream dis) throws IOException
	{
		m_ID =dis.readInt();
		m_type = dis.readUTF();
		m_port = dis.readInt();
		m_ip = dis.readUTF();
		m_zona = dis.readInt();
	}
}
